import React from 'react'
import { Route, Redirect } from 'react-router-dom'
// 向宇峰
import Homestatic from './xyf/Homestatic'

// 易川川
import Xinzengjiekuan from '@/views/ych/Xinzengjiekuan'
import Xinbiaoweihu from '@/views/ych/Xinbiaoweihu'

//颜小柯
import Recharge from "./yxk/Recharge";
import Cash from "./yxk/Cash";
import Operation from "./yxk/Operation";
import auditParticulars from "./yxk/AuditParticulars";
//何军 
import Hj from '@/views/hj/Hj'

//李泽瑶
import Lzy from '../views/lzy/Lzy';
import VipUsername from '../views/lzy/VipUsername';
import RepaymentManage from './hj/RepaymentManage'


export default function Content(props) {
    const baseUrl = props.data.match.url
    return (
        <div>
            {/* 向宇峰的页面 */}
            <Redirect from={baseUrl} to={ baseUrl + '/home'} />
            <Route path={ baseUrl + '/home'} component={Homestatic}></Route>

            {/* 易川川的页面 */}
            <Route path={ baseUrl + '/jiedai/Xinzengjiekuan'} component={Xinzengjiekuan}></Route>
            <Route path={ baseUrl + '/jiedai/Xinbiaoweihu'} component={Xinbiaoweihu}></Route>

            {/* 颜小柯的页面 */}
            <Route path={ baseUrl + '/zijin/chongzhijilu'} component={Recharge}></Route>
            <Route path={ baseUrl + '/zijin/tixianjilu'} component={Cash}></Route>
            <Route path={ baseUrl + '/zijin/tixianshenhe'} component={Operation}></Route>
            <Route path={ baseUrl + '/zijin/auditParticulars'} component={auditParticulars}></Route>
            {/*<Route path={ baseUrl + '/zijin/tixianshenhe/auditParticulars'} component={Operation}></Route>*/}
            {/* 何军的页面 */}
            <Route path={ baseUrl + '/xitong/canshupeizhi'} component={Hj}></Route>
            <Route path={ baseUrl + '/jiedai/huankuan/huankuanguanli'} component={RepaymentManage}></Route>

            {/* 李泽瑶的页面 */}
            <Route path={ baseUrl + '/huiyuan/xinzengjiedaiyonghu'} component={ Lzy }></Route>
            <Route path={ baseUrl + '/huiyuan/jiekuanyonghuguanli'} component={ VipUsername }></Route>
        </div>
    )
}
